#include "MoveSenseFactory.h"

#ifdef _WIN32
#include "CameraDS.h"
#include "CameraUSB.h"
#else 
#include "CameraV4L.h"
#endif


namespace movesense {

MoveSenseFactory::MoveSenseFactory(void)
{
}

MoveSenseFactory::~MoveSenseFactory(void)
{
}

CameraBase* MoveSenseFactory::GetCamera( CameraInfo info )
{
	CameraBase *camera;

#ifdef _WIN32
	if (info.protocol == "UVC_I2C")
	{
		camera = new CameraDS(info);
	}
	// else if (info.protocol == "LIBUSB_I2C")
	// {
	// 	camera = new CameraUSB(info);
	// }
#else 
	camera = new CameraV4L(info);
#endif

	return camera;
}

}